import _fetch from './request'

function getSubjectList(params) {
    return _fetch({
        url: "/subject/list",
        params
    })
}

function setSubjectStatus(data) {
    return _fetch({
        url: "/subject/status",
        method: "post",
        data
    })
}
function setSubjectAdd(data) {
    return _fetch({
        url: "/subject/add",
        method: "post",
        data
    })
}
function setSubjectEdit(data) {
    return _fetch({
        url: "/subject/edit",
        method: "post",
        data
    })
}

function setSubjectDel(data) {
    return _fetch({
        url: "/subject/remove",
        method: "post",
        data
    })
}
export { getSubjectList, setSubjectStatus, setSubjectAdd, setSubjectEdit, setSubjectDel }